<script setup>
import { ref, onBeforeMount, onMounted, onBeforeUpdate, onUpdated } from 'vue'
import LifyComp from '@/components/LifyComp.vue';
const flag = ref(true)
</script>

<template>
    <LifyComp v-if="flag"></LifyComp>

    <button @click="flag = !flag">修改状态</button>
</template>